public class book {
    private String name;
    private String author;
    private boolean borrowed;
    private int LendTime;

    public book(String name, String author, boolean borrowed) {
        this.name = name;
        this.author = author;
        this.borrowed = borrowed;
    }

    public String getName() {
        return name;
    }

    public int getLendTime() {
        return LendTime;
    }

    public void setLendTime(int lendTime) {
        LendTime = lendTime;
    }

    public boolean isBorrowed() {
        return borrowed;
    }

    public void setBorrowed(boolean borrowed) {
        this.borrowed = borrowed;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }




    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        book book = (book) o;

        return name != null ? name.equals(book.name) : book.name == null;
    }

}
